

/**
 * 刷新ppsConfig中的url
 * @param {*} pageSelf
 * @param {*} activeKey
 */
const  ResetPPSVal = (pageSelf, activeKey) => {
  pageSelf.currentPageConfig.forEach(item=>{
    const {key,configName} =item
    if(activeKey == key){
      const url = pageSelf.pageConfigList[configName].ppsConfig.url
      console.log('刷新ppsConfig中的url=====>',url);
      pageSelf.pageConfigList[configName].ppsConfig.url = `${url.split('?')[0]}?l=${new Date().getTime()}`
    }
  })
}

/**
 * tab change事件
 * @param {*} pageSelf
 * @param {*} activeKey 当前tab选择的key
 */
const tabChangeEvent = (pageSelf, activeKey)=>{
  ResetPPSVal(pageSelf, activeKey)
}

export default tabChangeEvent
